<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>区域填充到指定颜色的边界为止</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.imagefilledrectangle.html">imagefilledrectangle</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.imagefilter.html">imagefilter</a></div>
 <div class="up"><a href="ref.image.html">GD and Image 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.imagefilltoborder" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">imagefilltoborder</h1>
    <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">imagefilltoborder</span> &mdash; <span class="dc-title">区域填充到指定颜色的边界为止</span></p>

   </div>
   <div class="refsect1 unknown-unknown-unknown-seealsr" id="refsect1-function.imagefilltoborder-unknown-unknown-unknown-seealsr">
    <h3 class="title">说明</h3>
    <div class="methodsynopsis dc-description">
     <span class="type">bool</span> <span class="methodname"><strong>imagefilltoborder</strong></span>
      ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$image</code></span>
     , <span class="methodparam"><span class="type">int</span> <code class="parameter">$x</code></span>
     , <span class="methodparam"><span class="type">int</span> <code class="parameter">$y</code></span>
     , <span class="methodparam"><span class="type">int</span> <code class="parameter">$border</code></span>
     , <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span>
     )</div>

    <p class="para rdfs-comment">
     <span class="function"><strong>imagefilltoborder()</strong></span> 从
     <em><code class="parameter">x</code></em>，<em><code class="parameter">y</code></em>（图像左上角为
     0, 0）点开始用 <em><code class="parameter">color</code></em>
     颜色执行区域填充，直到碰到颜色为 <em><code class="parameter">border</code></em>
     的边界为止。【注：边界内的所有颜色都会被填充。如果指定的边界色和该点颜色相同，则没有填充。如果图像中没有该边界色，则整幅图像都会被填充。】
    </p>
   </div>

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.imagefilledrectangle.html">imagefilledrectangle</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.imagefilter.html">imagefilter</a></div>
 <div class="up"><a href="ref.image.html">GD and Image 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
